package com.knight.service.impl;

import com.knight.dao.StudentDao;
import com.knight.service.StudentService2;
import com.knight.spring.bean.Student;

public class StudentService2Impl implements StudentService2 {

    private StudentDao studentDao;

    public void setStudentDao(StudentDao studentDao) {
        this.studentDao = studentDao;
    }

    @Override
    public void saveStudent(Student student) {
        studentDao.saveStudent(student);
    }
}
